package com.demo.user.converter;

import com.demo.common.base.constant.SysConstant;
import com.demo.user.bo.CreateUserBO;
import com.demo.user.entity.UserMain;
import com.demo.user.vo.UserMainVO;
import org.mapstruct.Builder;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * 用户数据转换
 *
 * @author DayDayUp
 * create on 2023-05-18
 **/

@Mapper(builder = @Builder(disableBuilder = true), componentModel = SysConstant.SPRING)
public interface UserMainConverter {
    List<UserMainVO> toUserMainList(List<UserMain> records);

    UserMain toUserMain(CreateUserBO createUserBO);
}
